"use strict";function upload(e,o){var r=e.selected_port,t=e.data,a=intel_hex.parse(t).data,n=new SerialPort.SerialPort(r,{baudrate:board.baud});n.on("open",function(){Stk500.bootload(n,a,board,function(e){n.close(function(e){"undefined"!=e&&console.log(e)}),o(e)})})}var SerialPort=require("browser-serialport"),intel_hex=require("intel-hex"),Stk500=require("stk500"),board={name:"Arduino Uno",baud:57600,signature:new Buffer([30,149,15]),pageSize:128,timeout:400};window.stk500={upload:upload};